.background {
  width: 100%;
  height: 100%;
  background: var(--global-bg);
}

.cols {
  display: grid;
  grid-template-columns: 75% 25%;
  grid-template-rows: auto;
  grid-template-areas: 'main sidebar';
}

.post {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -ms-transition: all 0.3s;
  transition: all 0.3s;
  -webkit-align-self: flex-start;
  align-self: flex-start;
  -ms-flex-item-align: start;
  border-radius: 8px;
  background: var(--card-bg);
  -webkit-box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
  box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);

  .copyright {
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-bg);
    -webkit-box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
    box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
    position: relative;
    margin: 2rem 0 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--light-grey);
    -webkit-transition: box-shadow 0.3s ease-in-out;
    -moz-transition: box-shadow 0.3s ease-in-out;
    -o-transition: box-shadow 0.3s ease-in-out;
    transition: box-shadow 0.3s ease-in-out;

    &:hover {
      -webkit-box-shadow: 0 4px 12px 12px rgba(7, 17, 27, 0.15);
      box-shadow: 0 4px 12px 12px rgba(7, 17, 27, 0.15);
    }
    &:before {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      width: 0.8rem;
      height: 0.8rem;
      border-radius: 0.8rem;
      background: #49b1f5;
      content: '';
    }

    &:after {
      position: absolute;
      top: 0.7rem;
      right: 0.7rem;
      width: 0.4rem;
      height: 0.4rem;
      border-radius: 0.4rem;
      background: var(--card-bg);
      content: '';
    }

    .author {
      span:first-child {
        color: #49b1f5;
        font-weight: bold;
      }
      span:last-child {
        padding-left: 0.3rem;
      }
      a {
        text-decoration: underline;
        word-break: break-word;
        color: var(--font-color);
        word-wrap: break-word;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        -ms-transition: all 0.2s;
        transition: all 0.2s;
        overflow-wrap: break-word;
        background-color: transparent;
        &:hover {
          color: #49b1f5;
          text-decoration: none;
        }
      }
    }
    .type {
      span:first-child {
        color: #49b1f5;
        font-weight: bold;
      }
      span:last-child {
        padding-left: 0.3rem;
      }
      a {
        text-decoration: underline;
        word-break: break-word;
        color: var(--font-color);
        word-wrap: break-word;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        -ms-transition: all 0.2s;
        transition: all 0.2s;
        overflow-wrap: break-word;
        background-color: transparent;
        &:hover {
          color: #49b1f5;
          text-decoration: none;
        }
      }
    }
    .notice {
      span:first-child {
        color: #49b1f5;
        font-weight: bold;
      }
      span:last-child {
        padding-left: 0.3rem;
      }
      a {
        text-decoration: underline;
        word-break: break-word;
        color: var(--font-color);
        word-wrap: break-word;
        -webkit-transition: all 0.2s;
        -moz-transition: all 0.2s;
        -o-transition: all 0.2s;
        -ms-transition: all 0.2s;
        transition: all 0.2s;
        overflow-wrap: break-word;
        background-color: transparent;
        &:hover {
          color: #49b1f5;
          text-decoration: none;
        }
      }
    }
  }
  hr {
    position: relative;
    margin: 2rem auto;
    border: 4px dashed var(--hr-border);
    width: calc(100% - 4px);
    box-sizing: content-box;
    height: 0;
    overflow: visible;
    box-shadow: 0 0 0 1px #b4a078 inset;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0));
    &:hover:before {
      left: calc(95% - 20px);
    }
    &:before {
      position: absolute;
      top: -10px;
      left: 5%;
      z-index: 1;
      color: var(--hr-before-color);
      content: '🧱';
      font-size: 20px;
      line-height: 1;
      -webkit-transition: all 1s ease-in-out;
      -moz-transition: all 1s ease-in-out;
      -o-transition: all 1s ease-in-out;
      -ms-transition: all 1s ease-in-out;
      transition: all 1s ease-in-out;
    }
  }
  .comments {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--card-bg);
    -webkit-box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
    box-shadow: 0 4px 8px 6px rgba(7, 17, 27, 0.06);
    padding: 1em;
    &:hover {
      -webkit-box-shadow: 0 4px 12px 12px rgba(7, 17, 27, 0.15);
      box-shadow: 0 4px 12px 12px rgba(7, 17, 27, 0.15);
    }
    .header {
      margin-bottom: 1rem;
      .header_line {
        display: inline-block;
        vertical-align: middle;
        font-weight: 700;
        font-size: 1.43em;
        span {
          margin-left: 1rem;
        }
      }
    }
  }
}

.aside {
  padding: 0 1em 1em 1em;

  .sticky_layout {
    position: sticky;
    position: -webkit-sticky;
    top: 20px;
  }
}
